import type { FC, ReactNode } from 'react'
import { memo, useEffect } from 'react'
import styles from './less/NoFound.less'
import { API } from '@/api'

interface TProps {
  children?: ReactNode
}

const NoFound: FC<TProps> = () => {
  // 测试网络请求
  const getData = async () => {
    const res = await API.userLogin({ data: { pwd: '123456', userName: 'admin' } })
    console.log(res)
  }
  useEffect(() => {
    getData()
  }, [])
  return (
    <div
      className={styles.NoFound}
      id="NoFound"
    >
      <h2>NoFound</h2>
    </div>
  )
}

export default memo(NoFound)
